Saltar al contenido principal
POST
/
public
/
v1
/
assets
/
collection
[BETA] Create Collection
curl --request POST \
  --url https://api.topsort.com/public/v1/assets/collection \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>"
}

Autorizaciones

Authorization
string
header
requerido

A valid API key generated in Topsort's UI.

Parámetros de consulta

vendor_id
string
requerido

Vendor ID.

Cuerpo

application/json
name
string
requerido

The name of the collection.

Maximum string length: 64
description
string | null

A description for the collection.

Maximum string length: 400

Respuesta

Successful Response

id
string
requerido

The id of the collection.

name
string
requerido

The name of the collection.

description
string | null

A description for the collection.